/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.caresms.service.http.Keyword_MasterServiceSoap}.
 *
 * @author    cc
 * @see       com.caresms.service.http.Keyword_MasterServiceSoap
 * @generated
 */
public class Keyword_MasterSoap implements Serializable {
	public static Keyword_MasterSoap toSoapModel(Keyword_Master model) {
		Keyword_MasterSoap soapModel = new Keyword_MasterSoap();

		soapModel.setKeyId(model.getKeyId());
		soapModel.setCompanyId(model.getCompanyId());
		soapModel.setUserId(model.getUserId());
		soapModel.setKeywordName(model.getKeywordName());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setCreated_By(model.getCreated_By());
		soapModel.setIsActive(model.getIsActive());
		soapModel.setCat_Id(model.getCat_Id());
		soapModel.setField1(model.getField1());
		soapModel.setField2(model.getField2());
		soapModel.setField3(model.getField3());
		soapModel.setField4(model.getField4());
		soapModel.setField5(model.getField5());

		return soapModel;
	}

	public static Keyword_MasterSoap[] toSoapModels(Keyword_Master[] models) {
		Keyword_MasterSoap[] soapModels = new Keyword_MasterSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static Keyword_MasterSoap[][] toSoapModels(Keyword_Master[][] models) {
		Keyword_MasterSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new Keyword_MasterSoap[models.length][models[0].length];
		}
		else {
			soapModels = new Keyword_MasterSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static Keyword_MasterSoap[] toSoapModels(List<Keyword_Master> models) {
		List<Keyword_MasterSoap> soapModels = new ArrayList<Keyword_MasterSoap>(models.size());

		for (Keyword_Master model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new Keyword_MasterSoap[soapModels.size()]);
	}

	public Keyword_MasterSoap() {
	}

	public long getPrimaryKey() {
		return _KeyId;
	}

	public void setPrimaryKey(long pk) {
		setKeyId(pk);
	}

	public long getKeyId() {
		return _KeyId;
	}

	public void setKeyId(long KeyId) {
		_KeyId = KeyId;
	}

	public long getCompanyId() {
		return _companyId;
	}

	public void setCompanyId(long companyId) {
		_companyId = companyId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getKeywordName() {
		return _KeywordName;
	}

	public void setKeywordName(String KeywordName) {
		_KeywordName = KeywordName;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public long getCreated_By() {
		return _Created_By;
	}

	public void setCreated_By(long Created_By) {
		_Created_By = Created_By;
	}

	public boolean getIsActive() {
		return _isActive;
	}

	public boolean isIsActive() {
		return _isActive;
	}

	public void setIsActive(boolean isActive) {
		_isActive = isActive;
	}

	public long getCat_Id() {
		return _Cat_Id;
	}

	public void setCat_Id(long Cat_Id) {
		_Cat_Id = Cat_Id;
	}

	public String getField1() {
		return _field1;
	}

	public void setField1(String field1) {
		_field1 = field1;
	}

	public boolean getField2() {
		return _field2;
	}

	public boolean isField2() {
		return _field2;
	}

	public void setField2(boolean field2) {
		_field2 = field2;
	}

	public int getField3() {
		return _field3;
	}

	public void setField3(int field3) {
		_field3 = field3;
	}

	public Date getField4() {
		return _field4;
	}

	public void setField4(Date field4) {
		_field4 = field4;
	}

	public String getField5() {
		return _field5;
	}

	public void setField5(String field5) {
		_field5 = field5;
	}

	private long _KeyId;
	private long _companyId;
	private long _userId;
	private String _KeywordName;
	private Date _createDate;
	private long _Created_By;
	private boolean _isActive;
	private long _Cat_Id;
	private String _field1;
	private boolean _field2;
	private int _field3;
	private Date _field4;
	private String _field5;
}